<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let aList = [1, 2, 3];
        let [a, b, c] = aList;
        // alert(a);
        // alert(b);
        // alert(c);

        let person = {name: "tom", age: 18};
        let {name, age} = person;
        // alert(name);
        // alert(age);

        function fnAlertPerson({name, age}) {
            alert(`我是${name} 我${age}岁`);
        }

        fnAlertPerson(person);
    </script>
</head>
<body>
    
</body>
</html>